﻿@using CommonSite.Common 
<table class="tt-table" border="1" cellspacing="0" bordercolor="#000">
    <tr class="c1">
        <td style="width:20%">
            申请日期：
        </td>
        <td style="width: 80%">
            @DateTime.Now.ToString("yyyy 年 MM 月 dd 日")
        </td>
    </tr>
    <tr class="c1">
        <td>
            申请人：
        </td>
        <td>
            @CommonLibrary.UserAction.GetCurrentUser().UserName
        </td>
    </tr>
    <tr class="c1">
        <td>
            申请部门：
        </td>
        <td>
            @TemplateHelper.CreateUserDeptControl()
        </td>
    </tr>
    @foreach (var item in ViewBag.Fields)
    {
        if(item.ControlId != 10)
        {
        <tr class="@string.Format("c{0}", item.ControlId)">
            <td>@item.Name：</td>
            <td>
                @TemplateHelper.CreateControl(item)
            </td>
        </tr>
        }
        else
        {
        <tr class="@string.Format("c{0}", item.ControlId)">
            <td>@item.Name：</td>
            <td>
                <div>
                    @{
                        Html.RenderPartial("TableControl", (object)item);
                    }
                </div>
            </td>
        </tr>
        }
    }
    <tr style="height:40px;">
        <td style="text-align:center;" colspan="2">
            <input style="width:80px;height:30px;" type="submit" value="确认并提交" />
        </td>
    </tr>
</table>
